package com.chezhujie.www.core.image;

import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

import javax.imageio.ImageIO;

public class TestIm {

	public static void main(String[] args) throws IOException {
		
		File f = new File("D://cy1//q.jpg"); //原图片
		
		ImageUtils.fromFile(f)
		.quality(0.6f)
		.fixedGivenSize(true)
		.keepRatio(true)
		.bgcolor(Color.WHITE)	//透明背景
		.toFile(new File("D://cy1//q1.jpg"));
		
		
		

		
	
		
		
	}
}
